package common;

public class Node{
	protected String name;
	protected String key;
	protected String value;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	public String toString(){
		return name + "\\ " + key + "=" + value;
	}
	
	public boolean equals(Object o){
		boolean result = false;
		try{
		if(o instanceof Node){
			if(this.key.equals(((Node) o).key) && this.value.equals(((Node) o).getValue()))
				result = true;
		}
		}catch(Exception e){
			result = false;
		}
		return result;
	}
}
